Skip to content

Conversation

@absurdfarce
Copy link
Owner

This PR first consolidates handling of column ordering into an OrderingClause type and re-implements existing orderings using that type. We then demonstrate how this implementation can be used to implement custom orderings, specifically the BM25 ordering provided by Astra.


/**
* Retrieve the current {@link OrderingClause} as a {@link ColumnsOrderingClause} if it exists and
* is an instance of this class, Otherwise create a new one.
Copy link

@tatu-at-datastax tatu-at-datastax Jul 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this means that if there is an existing custom-type OrderingClause, that is dropped?

I assume it is ok wrt ANN and BM25 as they cannot be combined with "regulard" ORDER BY clauses but could maybe hide issues?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants